import { request } from '../../request';

export function getArticleDetail(data:any) {
    return request({
        url: `/admin/article/detail`,
        method: 'post',
        data: data
      })
}

export function publishArticle(data:any) {
    
    return request({
        url: `/admin/article/publish`,
        method: 'post',
        data: data
      })
}


export function getArticlePageList(data:any) {
    return request({
        url: `/admin/article/list`,
        method: 'post',
        data: data
    })
}

export function deleteArticle(articleId:any) {
    return request({
        url: `/admin/article/delete`,
        method: 'post',
        data: { articleId: articleId }
    })
}

export function getCategorySelect(data) { 
    return  request({
        url: `/admin/article/update`,
        method: 'post'
      })
}

